home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sun4c / archive / tcltk.z / tcltk / man / catn / after.n next >
Text File  |  1994-09-20  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4. after(n)                   Tk Commands
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NAME
  11.      after - Execute a command after a time delay
  12.  
  13. SYNOPSIS
  14.      after _m_s ?_a_r_g_1 _a_r_g_2 _a_r_g_3 ...?
  15. _________________________________________________________________
  16.  
  17.  
  18. DESCRIPTION
  19.      This command is used to delay execution of the program or to
  20.      execute a command in background after a delay.  The _m_s argu-
  21.      ment gives a time in milliseconds.  If _m_s is the only  argu-
  22.      ment  to  after  then the command sleeps for _m_s milliseconds
  23.      and returns.  While the command is sleeping the  application  |
  24.      does not respond to X events and other events.
  25.  
  26.      If additional arguments are present after  _m_s,  then  a  Tcl
  27.      command  is formed by concatenating all the additional argu-
  28.      ments in the same fashion  as  the  concat  command.   After
  29.      returns  immediately but arranges for the command to be exe-
  30.      cuted _m_s milliseconds later in background.  The command will  |
  31.      be  executed at global level (outside the context of any Tcl  |
  32.      procedure).  If an error occurs while executing the  delayed
  33.      command  then  the  tkerror  mechanism is used to report the
  34.      error.
  35.  
  36.      The after command always returns an empty string.
  37.  
  38.  
  39. SEE ALSO
  40.      tkerror
  41.  
  42.  
  43. KEYWORDS
  44.      delay, sleep, time
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63. Tk                                                              1
  64.  
  65.  
  66.  
  67.